added vaildation to the resetpassword form