Add validation to form helper