Add login & logout api commands