get client address of user moved into separate method and log accordingly