Moved GUI error checking

Moved all the input validation to be part of the GUI, and all in one
place.
Consolidated error checking