login: made short urls when redirected to login page