Login page: register page was in html changed to JSP and login use-case issue with if/else statement