Issue #20: isValidBaseUri is set to false if URI is invalid. Also made alert message a constant