finished basic session login and logout