Password updates

Added some password length requirements, made forgot password typo-safe.
Made some of the js actually give the user feedback.

Addtionally a constants.php file has been added to make password length
requirements configurable.