added LOGIN_REDIRECT_URL in ap.settings to fix logout function