Login Validation, Fixed Warnings

Login now validates username/password.
Logout now clears login credentials.

Changed a few instance-based accesses of static variables to static
accesses (avoids warnings).

Fixed a few other misc. warnings.