a script that checks the input