Log more error info during login