fix login to use generated classes