started framework for input validation