Fixed crash on login