added Certificate Check