#11 validate input