fixed some login/logout issues, added redirects