I have this problem when registering a new account. I created a dropdown list there to select a role (Admin, User etc).
When I create a new account if I write one letter as a password it shows this (works correctly):

When I create a password without a number, an Uppercase letter and a non-alphabetical symbol. It should also state a similar error by default. Saying something like: "Your password doesn't have an uppercase letter, blah blah.."
But what it does is sends this error.

If I write the password correctly like: "password1A_" then it works, creates an account without any problems.
How should I fix this error? I haven't inserted anything because I don't where the problem could be and I won't be inserting all of the Register code here because there's too much of it by default.
And this is my Register Methods:
[AllowAnonymous]
public ActionResult Register()
{
List<SelectListItem> list = new List<SelectListItem>();
foreach (var role in RoleManager.Roles)
list.Add(new SelectListItem() { Value = role.Name, Text = role.Name });
ViewBag.Roles = list;
return View();
}
//
// POST: /Account/Register
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Register(RegisterViewModel model)
{
if (ModelState.IsValid)
{
var user = new ApplicationUser { UserName = model.Email, Email = model.Email };
var result = await UserManager.CreateAsync(user, model.Password);
if (result.Succeeded)
{
result = await UserManager.AddToRoleAsync(user.Id, model.RoleName);
await SignInManager.SignInAsync(user, isPersistent:false, rememberBrowser:false);
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=320771
// Send an email with this link
// string code = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id);
// var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
// await UserManager.SendEmailAsync(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>");
return RedirectToAction("Index", "Home");
}
AddErrors(result);
}
// If we got this far, something failed, redisplay form
return View(model);
}
Any help is highly appreciated