fix login bootstraping issue