I'm using garland's theme for my Drupal 6 administrator. I added a template called: page-user-login.tpl.php which I can access from mywebiste.com/user/login. Inside the template I simply added:
<html ...>
<head>
<?php print $head ?>
<?php print $styles ?>
</head>
<body>
<?php
print drupal_get_form('user_login_block');
print $messages;
?>
</body>
</html>
The login form gets displayed and is working correctly for existing users.
However, if a user doesn't exists, no messages are displayed on the page. I tried using "theme_status_messages" and "drupal_get_messages" but they always are empty. What should I do in order to get the return error message?
PS: I'm creating a custom login page because it needs a complete different design than all the other pages.