Added syslog reporting for failed API login attempts.

Replicates code changes in public handler's login method that syslogs failed login attempts. Failed API login attempts are also logged with this commit. (For fail2ban-type monitoring, etc.)