added redirects for login