How do I get the submitted value for a field? I have a custom submit handler: 

function submituserform(array $form, FormStateInterface $form_state) {
  $email = $form_state-&gt;getValue('field_email');
  drupal_set_message('Thank you for for submitting your application. You will receive a confirmation at ' . $email . ');

  $redirect_path = "/confirmation";
  $url = url::fromUserInput($redirect_path);
  $form_state-&gt;setRedirectUrl($url);


}

I get Array as value for the email. How do I get the email from field_email?
You can also do this in following way:

function submituserform(array $form, FormStateInterface $form_state) {
  $element = $form['field_email'];
  $email = $form_state-&gt;getValue($element['#parents']);