private boolean validPassword() {
    password = tiePassword.getText().toString().trim();

    if (TextUtils.isEmpty(password)) {
      tilPassword.setError(Util.addCustomFont(this, getString(R.string.msg_password)));
      Util.requestFocus(this, tiePassword);
      return false;
    }

    if (password.length() < 6) {
      tilPassword.setError(Util.addCustomFont(this, getString(R.string.min_password)));
      Util.requestFocus(this, tiePassword);
      return false;
    } else {
      tilPassword.setErrorEnabled(false);
    }

    return true;
  }
  public boolean validEmail() {

    email = tieEmail.getText().toString().trim();

    if (TextUtils.isEmpty(email)) {
      tilEmail.setError(Util.addCustomFont(this, getString(R.string.msg_email)));
      Util.requestFocus(this, tieEmail);
      return false;
    }

    if (Util.validEmail(email)) {
      tilEmail.setErrorEnabled(false);
    } else {
      tilEmail.setError(Util.addCustomFont(this, getString(R.string.incorrect_email)));
      Util.requestFocus(this, tieEmail);
      return false;
    }

    return true;
  }