Improving logging into application & getting friendslist