added tests for invalid email, etc