Incorrect user entries now throw dialog box

Incorrect user entries in the gui now throw a dialog box saying
something went wrong and then restarts the program.