check if checkOwnerApp middleware is configured properly