flash messages working for local login