made MainActivity more efficient and Login supports getting friends from the user.