add registerAccessModule to the service provider