Below are revisions for this snippet.
Ensuring Proper Password Format
If you're asking your users to submit a password of 6-12 characters, you want to make sure it is done properly and without any special characters which could compromise your system.
To do this, you would want to use regular expressions






