try: 

`flash[:error]` = account.confirmed?(params) ? ['Invalid Password']) : ["Password must doesn't match confirm"]`