Add login warnings and handling user exit