Implemented checks to prevent IP banning

Changes:
* Always logout before logging in
* Check to see if user exists before logging in
* Pretty print all login errors for user