add form validate in controller