login functions updated