read,edit and validation if we are user,editor or admin function