moved indext page from users to identities and fixed all api endpoints for appoitnments to redirect to mainpage if not logged in