use log instead of fmt.Printf
add login
add client test tool