changed the input has-error reset procedure to inside the ajax callback. to make ui more snappy during erroroneous input