Add login functionality.