getting login to work