more improvements to form validation and style