add username checking to mac client