change layout_helper html_options :required => true to :is_required => true as it conflicts with HTML5 tag