Finished input validation