Text field won't hide using conditionals