add debug output for login method return value.