can handle password input errors. tested