validation methods in form lib