fixed callback function to create a user with an ID