Fixed login return value and improved finding friends