public ActionResult ConfirmEmail(string token) { if (ModelState.IsValid) { try { _signInService.ActivateUser(token); return(RedirectToAction("Thankyou")); } catch (InvalidCredentialsException) { } } return(View()); }