Cleaned up error login.
Login/logout/errors function appropriately now.