adding form validation to portal page