private bool isValidLogin() { if (userName.Text.Length == 0 || userName.Text.Length < 6) { userName.SetError(GetString(Resource.String.edtLength), null); userName.RefreshDrawableState(); return(false); } if (email.Text.Length == 0) { email.SetError(GetString(Resource.String.emailErro), null); email.RefreshDrawableState(); return(false); } if (LegionUtils.isValidEmail(email.Text) == false) { email.SetError(GetString(Resource.String.emailErro), null); email.RefreshDrawableState(); return(false); } if (password.Text.Length == 0 || password.Text.Length < 6) { password.SetError(GetString(Resource.String.edtLength), null); password.RefreshDrawableState(); return(false); } return(true); }