changed the way login works