added gender check to print 'He' or 'She' in the certificate