Fixed login issue on macs too.