Fix login page and friend page