Replaced own LOGIN_URL handling with contrib.auth provided function.