You should make the error messages quit the program, instead of continuing with the said insufficient data.

Also, line 50, you cannot specify the else condition, if you want to specify use else...