fixing alert doesn't show up when user failed logging in