Return correct creditials if username or password is '' instead of nil