finish login after login / logout from main