Add login functionality to A3