Improved error handling on the login screen.

Logic now uses a switch statement so more messages can be added in the future. Bugs corrected that result in incorrect error messages appearing
Merge branch 'master' of https://github.com/kenno87/abberatio