Added friends and fixed authentication