Fixed user model. Added password hashing/comparing to the user model itself.