Fixed a bug with login flash message