adding userCreatedCallbacks callback hook and refactoring user creation