added offline friend requests
cleanup of login()