Abstract user login into interface.

Signed-off-by: Ben Corlett <bencorlett@me.com>