validate of certificate