fixed login workflow