modify login to use username field