Checks whether home_url is valid or not before taking further actions,#bug resolved