Got login to check if user exists then redirect the page.