Added tests to the user class. Added validation to usernames and passwords.