Fixed authentication for tenanted hosting
Fixed registration for tenanted hosting
Fixed unique key constraints for tenanted hosting