#594 - Moved lowercasing of username into the authentication model