adding some code from changePw.jsp removed by mistake