refactor in login.jsp