fixed: typo in check for non-empty user credentials