Search input validation