add login function and html