Fixes modal to be a form and adds validations to form template