Solve a login bug on the way