Empty input validation for Safari