switched auth to use authenticate rather than login. added documentation