only input validation