Implemented login/logout, added class models