private void add_click(object sender, RoutedEventArgs e)
        {
            cloudPicker cloudPick = new cloudPicker(user);

            cloudPick.Show();
            this.Close();
        }
        private void createAccountClick(object sender, RoutedEventArgs e)
        {
            String email;
            String emailConfirm;
            String password;
            String passwordConfirm;

            email           = this.email.GetLineText(0);
            emailConfirm    = this.emailConfirm.GetLineText(0);
            password        = this.password.Password.ToString();
            passwordConfirm = this.passwordConfirm.Password.ToString();
            if (validInput(email, emailConfirm, password, passwordConfirm))
            {
                //create account
                User        user  = db.SelectUser(email);
                cloudPicker cPick = new cloudPicker(user);
                cPick.Show();
                this.Close();
            }
            else
            {
                // this.errorMessage.Content = "Error incorrect email or password";
            }
        }