Prevents span from being displayed for valid input without messages