implemented validation and persistency of forms