Added switch richiedente for state in state 'pagata'. Added check for futur dates in forms.