Fixed return url when logging in using CS credentials