cant edit date if it has passed

added cant edit date if it has passed and if user is not authorized.