Validate that redirect_uri is a URL before executing any OAuth action.