Error with endsWith property

@jonatandor35 No, the “required” check is still on (you can see the star after the label on top of the field). I really don’t get it, it behave like there is no custom code behind.
Maybe because this is the “custom register form” and that there are specific rules, so we can simply not do it?
I don’t get it…