How to check whether the web system login is failed?