Add login directive