Fixed a bug where usernames weren't lowercased on login