input validation done