Simple input validation