add flash if failed login and there is exception