minor fix for mode in Login