fixed bug on enter login