Add validations for http and https