Registration and Login form in MVC architecture with validation - java,jsp,servlets,JNDI datasource