adding checkpassword