Fixed login issues with username