unique index on username
support almost empty user records for mac address authentication