Add constraint on post field and remove html5 validation to avoid bug with hidden field