fixed login flow, it now displays errors