added test to check for password