public IActionResult ProcessLogin(UserModel userModel) { // create an instance of the SecurityServices in the folder Services SecurityServices securityService = new SecurityServices(); if (securityService.IsValid(userModel)) { return(View("LoginSuccess", userModel)); } else { return(View("LoginFailure", userModel)); } }