Rename mandatory -> required

Also use required: true as the variable so that we get HTML5 support