Added comments to auth checks