Fixed if-then-else in submit script