More improvements

Improved many things.
Fixed more bugs.
Improved login system, now gives messages dependent on whether a
username was entered or not and whether the password was right or not.
Fixed shutdown.