Fixed bug on login part