refactoring views and routes
custom form validation