change file type of password to PasswordField