Receiving error when submitting form without required fields.