Add check for valid permissions and expiration time for update
Correct Alessandro's name in the header
Return instead of break 2