Add login function and style