input validation complete