Bugfix to make sure urls are saved correctly when generating report. Also added some validations for URL.