added error checking to users input