added flash notice for login error