Remove the password length validation code from user.js.

* Validation is taken care of in validation.js now.
* Create a generic class of tests for testing authentication passwords - missing, too short, too long.
* Create a generic class of tests for set password operations - missing password, too short, too long, missing vpassword, password mismatch