Changed registrationEnabled variable to server side