added checkpassword jquery method