solve dialog issue, add login error prompt