added password hash class and used it to hash a password when creating a new user also the login function now uses the validate password function from the passwordHash class