Add login mechanism