Fixed incorrect markup if form-validate is used

When the validate is set to true on a form XML it rendered:
```html
 class=" class="form-validate"" 
```
creating incorrect markup. This change fixes the incorrect markup.