login, session and logout complete