Got login/logout working. Refs #274