Fix a condition
Fix a bug that failed the whole login