check credentials passed in msghdr