Thank you Ray, now it works!
I use Bootstrap toolkit. And I want the invalid message to have the same design everywhere. Then I change the class from your "serverInvalidState" to Bootstraps "invalid-feedback" it does not change anything. It's still the same design on the error message. How can I change this?