Logout now redirects to login view instead of a harcoded url.