public async Task <ActionResult> CreateMasterPassword([FromForm] NewMasterPasswordInfo newDetails) { if (!ModelState.IsValid) { return(await CreateMasterPassword("Please enter a master password and the confirm the same value below.")); } await userAccountRepository.CreateNewUserAsync(User, newDetails.NewMasterPassword); return(Redirect("~/")); }