fix validate