fixed login redirects
fixed login redirecting