Fixing login/registration redirects