Cleaned up code in assignment2.PasswordPrompt.