Add login and cmd functionality