Code to validate site url.