Added error checking to submit buttons