Updated security config to allow requests to / and /RegisterUser