invalid email id results in a 400