@Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   if (PrefUtils.isUserLogged(prefs)) {
     BarazkideCache.init(prefs);
     UserCache.init(prefs);
     finish();
     GardensActivity_.intent(this).start();
   }
 }
 @UiThread
 void validateUserResult(User user) {
   if (UserUtils.isEmptyUser(user)) {
     prefs.user().put("");
     prefs.pass().put("");
     Toast.makeText(this, "Incorrect user or password.", Toast.LENGTH_SHORT).show();
   } else {
     loginUser(user);
     BarazkideCache.init(prefs);
     UserCache.init(prefs);
     finish();
     GardensActivity_.intent(this).start();
   }
   dialog.cancel();
 }