add a universal login method

http://jira/browse/OP-2472