static: displays Malformed input error message

When the user leaves the user name blank and tries to log in they will
not be brought to a new page any longer. Now the error message
"Malformed input" will be displayed.

Fixes: #940