basic implementation of LoginManager