Added validation error messages
Updated to allow one of the URLs to be empty