fix validate on view