added a redirect for getting identity