Add login functions.