Registartion page should be accessible without logging in. Give the endpoints that registration page is using permission to be used without authorization.