fixed first login bug