Added action controller for form validation.