change method name and fix checkpassword Null pointer bug