passing values back to form fields if a validation error occures