Corrected the error by removing some code from login.jsp as jaseel
suggested.