Moved the last aspect of member validation into the /submit call. Now all validation is handled in one place. Added a test.