fix alert when cant login