Adding function to hash password in beforeCreate callback.
Changed min password length to 8 characters