Updated log in function to ul li