adding check if the url checked is https. previously it was checking htt...

...p

only