Existence of optimal Nash contracts of a principal-agent model single and multiperiod considerations