set flash in serialize array, clear session flash message if ajax request and provide message in jsonresponse, NEW log method to summit.