Complete work on the User model and passwords hashing