@Override
 protected void onResume() {
   super.onResume();
   if (messenger().getAuthState() == AuthState.LOGGED_IN) {
     finish();
   }
 }
  @Override
  protected void onPause() {
    super.onPause();

    dismissProgress();
    dismissAlert();
  }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   signType = getIntent().getIntExtra(SIGN_TYPE_KEY, SIGN_TYPE_IN);
   if (savedInstanceState == null) {
     updateState();
   }
 }
 @Override
 public void onBackPressed() {
   messenger().trackBackPressed();
   super.onBackPressed();
 }