Updated error checks in GUI