Fixed the NullPointerException in index.jsp