fixed login on startup