complete prototype 'friends.html' and fix bugs of login page