Change :valid hack to class not-empty for inputs (also add email type)