fix validation in form