added conditional for blank middle name