working copy of login call