added models, login/logout etc.