Handled the login and logout with steps