Added checks for http:// and https:// in url