locationSelect refs enterprise, not project; beforeLogin() fires on reload
Fixed errors in patient_registration
fixed  loading err