Added error checking for each form thing. It was easier that way. Reshuffled the HTML as well.