Change 'Invalid token' message to flash error.