adding function to check facebooklogin status