Can hide regitration from guests

Added parameter allowGuestRegister