public async Task <IActionResult> IsEmailInUse(string Email) { var user = await userManager.FindByEmailAsync(Email); if (user == null) { return(Json(true)); } else { return(Json($"Email {Email} is already in use.")); } }