entered input validation