fix alert on login