changed Text field to accept other types (like password and email)