methods to set and check hashed password
login and register using password hashing