New way to add validation rules to form elements and combine it with old method
Docs updated to be synced with online documentation