Fixed bug on login