public function submitNewBusinessLine()
 {
     if (Session::has('username') && (Session::get('user_type') == "Root" || Session::get('user_type') == "Admin")) {
         $validator = Validator::make(array("name" => Input::get("name")), array("name" => "required"));
         if ($validator->fails()) {
             Input::flash();
             return Redirect::to('settings/employees/addbusinessline')->with('message', $validator->messages()->first());
         } else {
             $desc = "(" . Session::get('user_type') . ") " . "<strong>" . Session::get('username') . "</strong> has created a new Business Line: <strong>" . Input::get("name") . "</strong>";
             $businessLine = new BusinessLine();
             $businessLine->name = trim(Input::get("name"));
             $businessLine->save();
             //Log the changes made
             $newLog = new UserLog();
             $newLog->description = $desc;
             $newLog->user_id = Session::get('user_id');
             $newLog->type = "System";
             $newLog->save();
             return Redirect::to('settings/employees/addbusinessline')->with('success', "You have successfully created a  new Business Line.");
         }
     } else {
         return Redirect::to("/");
     }
 }