Added a bit of form error handling.