add validation and styles to form. fixes #79