rename validate to validateUri