wrote unit tests to test form validation regX patterns