revised type field for password input