Basic input validation