[AP-1756] Log error message when login fails