Added function "check_input"

"check_input" tells if the user has specified the correct input arguments