Check current URL in login method