private async Task <bool> SignIn()
        {
            if (IsInternet())
            {
                //check if fields are completed
                if (String.IsNullOrWhiteSpace(Username) || String.IsNullOrWhiteSpace(Password))
                {
                    await DisplayError(ErrorMsg.CompleteAllFieldsError);
                }
                else
                {
                    await PageService.PushPopupAsync(new WaitForActionView());

                    //create auth password
                    string            authPassword = VaultManager.CreateAuthPassword(Username, Password);
                    Models.TaskStatus statusLogin  = await UserProcessor.LogIn(ApiHelper.ApiClient, Username, authPassword);

                    if (!statusLogin.IsError)
                    {
                        return(true);
                    }
                    else
                    {
                        await PageService.PopPopupAsync();
                        await DisplayError(statusLogin.Message);
                    }
                }
            }
            return(false);
        }
        private async Task <bool> Register()
        {
            if (IsInternet())
            {
                //check if all fields are completed
                if (String.IsNullOrWhiteSpace(Username) || String.IsNullOrWhiteSpace(Password) || String.IsNullOrWhiteSpace(ConfirmPass))
                {
                    await DisplayError(ErrorMsg.CompleteAllFieldsError);
                }
                else
                {
                    //verify status of fields
                    Models.TaskStatus emailStatus = FieldsHelper.VerifyEmail(Username);
                    if (!emailStatus.IsError)
                    {
                        Models.TaskStatus passwordStatus = FieldsHelper.VerifyPassword(Password);
                        if (!passwordStatus.IsError)
                        {
                            if (ConfirmPass == Password)
                            {
                                if (!Password.ToLower().Contains(Username.ToLower()))
                                {
                                    await PageService.PushPopupAsync(new WaitForActionView());

                                    string            authPassword   = VaultManager.CreateAuthPassword(Username, Password);
                                    Models.TaskStatus statusRegister = await UserProcessor.Register(ApiHelper.ApiClient, Username, authPassword, authPassword);

                                    if (!statusRegister.IsError)
                                    {
                                        return(true);
                                    }
                                    else
                                    {
                                        await PageService.PopPopupAsync();
                                        await DisplayError(statusRegister.Message);
                                    }
                                }
                                else
                                {
                                    await DisplayError("Your email can't be in your password!");
                                }
                            }
                            else
                            {
                                await DisplayError("Your Confirm Password and your Password are not the same!");
                            }
                        }
                        else
                        {
                            await DisplayError(passwordStatus.Message);
                        }
                    }
                    else
                    {
                        await DisplayError(emailStatus.Message);
                    }
                }
            }
            return(false);
        }