public ActionResult LogOn(LogOnModel logOn)
        {
            if (ModelState.IsValid)
            {
                UserProcessor userProcessor = new UserProcessor();
                if (userProcessor.ValidateUser(logOn.EMail, logOn.Password))
                {
                    string userName = userProcessor.GetUserByEmail(logOn.EMail).FirstName;
                    FormsAuthentication.SetAuthCookie(userName, logOn.Stay);
                }
                else
                {
                    return View(logOn);
                }
                
            }
            return RedirectToAction("Index", "FaceBook");

        }
 public ActionResult Register(RegisterModel registerModel)
 {
     if (ModelState.IsValid)
     {
         UserProcessor userProcessor = new UserProcessor();
         if(userProcessor.CreateUser(registerModel))
         {
             return RedirectToAction("LogOn", "Account");
         }
         else
         {
             return View(registerModel);
         }
     }
     else
     {
         return View(registerModel);
     }
 }