Added method validPassword, improved methods beforeUpdate and hashPassword