beforeCreate callback is made to as the previous code as save was not happening