fix validation from form