write user validation tests