Log error into log if authentication fails. reference for issue #31