http stuff, log in improvements