Password hashing method now working properly