login changed to use username