Removed login_attempt() from host.cpp

login_attempt() does not blong in this file
anymore, remove it.
Fix broken if statment.

When a host is in the blocklist, it would be
incorrectly re-registered.