disable valid button when errors