checking authorization status