fixed issue related to pre and post validation