form validation and tool tips