Add login function and user display