cleaned up the form for validation.