Fixed bug that caused Submit button to crash app

Yeah, I just looked at other people's code. I had a lot of trouble with
this lab. :dash: