fix issue on login