upon login now redirects to correct page