updating script form_valida and common views