Fixed error messages on login with a flash