Override the login function to use non-clean-urls