Fix pasword hashing when logging in