refactoring angularjs modules and controller and change form validation with angular