fix the disabled state
button also disabled when no name