added tests for password authentication and passed test for password length requirement