Create or update button disabled when invalid