Added pagination and patched current_user nil bug reported by users in invite_friends