update gem file and login fix