fixed bug in first time login