updated with Spring MVC form in jsp and refactored controller