field can be set to passwordfield