modified login to accept username