moved validation into FormUtilities