form validation for investments