user_login_block not displaying status messages I am creating my own theme for my website, and am having an issue with the user_login_block form. I have a simple jQuery dropdown style content div in which I am outputting the form, and have no clue why it is not displaying status messages (invalid login attempts, ect..). When entering incorrect credentials, the page simply refreshes and nothing is displayed to the end user. I am new to Drupal, but not new to PHP. I have no idea what I could be doing wrong. My code is below, any help would be much appreciated.

hook_form_alter:

function dtn_form_alter(&amp;$form, &amp;$form_state, $form_id) {
    switch($form_id) {
        case 'user_login_block':            
            $form['links']['#markup'] = '&lt;ul class="dtn-user-login-menu-links"&gt;&lt;li&gt;&lt;a href="/user/password"&gt;' . t('Request new password') . '&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;';
            $form['name']['#title'] = Null;
            $form['name']['#attributes'] = array('placeholder' =&gt; t('Username'));
            $form['pass']['#title'] = Null;
            $form['pass']['#attributes'] = array('placeholder' =&gt; t('Password'));
            break;
    }
}


Login Form Source:

$userLoginForm = drupal_get_form('user_login_block');

$output .= '&lt;ul class="dtn-user-bar-content-list"&gt;';
$output .= '&lt;li class="dtn-user-menu-login-link"&gt;&lt;a class="dtn-user-menu-trigger-login" href="#"&gt;' . t('Login') . '&lt;/a&gt;';
$output .= '&lt;div class="dtn-user-menu-content"&gt;';
$output .= render($userLoginForm);
$output .= '&lt;/div&gt;';
$output .= '&lt;/li&gt;';
$output .= '&lt;li class="dtn-user-menu-register"&gt;' . t('&lt;a href="!url"&gt;Register&lt;/a&gt;', ['!url' =&gt; url('user/register')]) . '&lt;/li&gt;';
$output .= '&lt;/ul&gt;';

$output = '&lt;div class="dtn-user-bar-content"&gt;' . $output . '&lt;/div&gt;';

return $output;


}
I think you are embedding Login Form directly in .tpl file. Either assign login block to some region or bring it through a variable from hook_preproces_page() function.