public function deletesrv()
 {
     if (!Auth::check()) {
         return View::make('login');
     }
     $input = Input::all();
     $validator = Validator::make($input, array('gid' => "integer | required"), array('gid.required' => 'Security Error. IP Logged.', 'gid.integer' => 'Security Error. IP Logged.'));
     if ($validator->fails()) {
         $messages = $validator->messages();
         $errors = array();
         foreach ($messages->all() as $message) {
             array_push($errors, $message);
         }
         return $errors;
     } else {
         $instance = Instance::where('uid', Auth::user()->id)->where('id', Input::get('gid'))->first();
         $instance->delete();
         return "success";
     }
 }